package com.zhangwei.fresco.fragment;

import android.os.Bundle;

import com.wuxiaolong.pullloadmorerecyclerview.PullLoadMoreRecyclerView;
import com.zhangwei.fresco.R;
import com.zhangwei.fresco.apdater.CommAdapter;
import com.zhangwei.fresco.apdater.HomeItemView;
import com.zhangwei.fresco.base.AAdapter;
import com.zhangwei.fresco.bean.HomeItems;

import org.androidannotations.annotations.Bean;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

import java.util.ArrayList;

/**
 * <item>精选</item>109
 * <item>穿搭</item>110
 * <item>礼物</item>112
 * <item>美护</item>113
 * <item>美食</item>118
 * <item>鞋包</item>117
 * <item>娱乐</item>120
 */
@EFragment(R.layout.fragment_comm)
public class CommFragment extends BaseFragment {


    AAdapter<HomeItems> adapter;

    @ViewById
    PullLoadMoreRecyclerView commPmrv;
    private ArrayList<HomeItems> homeItemses = new ArrayList<>();


    @Bean
    CommAdapter commAdapter;

    private ArrayList<HomeItems> itemList = new ArrayList<>();

    public static CommFragment newInstance() {
        Bundle args = new Bundle();
        CommFragment fragment = new CommFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void initView() {
        adapter = new AAdapter<HomeItems>(HomeItemView.class, getActivity(), homeItemses);
    }

    @Override
    public void initData() {

    }
}
